﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace XSTDZ.ERP.WebApp.ViewModel
{
    /// <summary>
    /// 用户登陆视图模型
    /// </summary>
    public class UserLoginViewModel
    {
        [Required(ErrorMessage="用户名必填！")]
        [Display(Name="账  号：")]
       // [Range(1,20,ErrorMessage="输入的用户名长度为：[1-20]字符之间！")]
        public string UserName { get; set; }
        [Required(ErrorMessage = "密码必填！")]
        [Display(Name = "密  码：")]
        public string UserPassword { get; set; }
        [Required(ErrorMessage = "验证码必填！")]
        [Display(Name = "验证码：")]
        public string ValidateCode { get; set; }
    }
}